package com.example.demo.module.repository.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.common.service.BaseService;
import com.example.demo.entity.pojo.repository.ProductRepositoryPoJo;
import com.example.demo.entity.request.repository.ProductRepositoryRequest;

import java.util.Date;

/**
 * ProductRepositoryService
 *
 * @author Mei Ruoxiao
 * @date 2020-09-18
 */
public interface ProductRepositoryService extends BaseService<ProductRepositoryPoJo> {
    /**
     * warehouse
     *
     * @param request   request
     * @param companyId companyId
     * @return id
     */
    boolean warehouse(final ProductRepositoryRequest request, final long companyId);


    /**
     * page
     *
     * @param state     state
     * @param start     start time
     * @param end       end time
     * @param page      page
     * @param size      size
     * @param companyId companyId
     * @return pojo
     */
    Page<ProductRepositoryPoJo> page(final Integer state, final Date start, final Date end, final int page, final int size, final long companyId);

}

